<?php


namespace App\Http\Controllers\android\api;


use App\Http\Controllers\android\service\ControlService;
use App\Http\Controllers\android\validate\Control;
use App\Http\Controllers\utils\ToolUtil;
use Illuminate\Http\Request;

class ControlApi
{
    public function getSetting(Request $request){
        $param = $request->all();
        $data = Control::getSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data);
        }
        return ControlService::getSetting($param);
    }

    public function getBrowser(Request $request){
        $param = $request->all();
        $data = Control::getBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data);
        }
        return ControlService::getBrowser($param);
    }

    public function getLabel(Request $request){
        $param = $request->all();
        $data = Control::getLabel($param);
        if($data){
            return ToolUtil::returnJson(401,$data);
        }
        return ControlService::getLabel($param);
    }

    public function queryAppInside(Request $request){
        $param = $request->all();
        $data = Control::getSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data);
        }
        return ControlService::queryAppInside($param);
    }

    
}